package com.wuzheng.wisgo.sanitation.cloud.service.gis;

import com.wuzheng.wisgo.sanitation.cloud.repository.entity.gis.MapBase;
import com.wuzheng.wisgo.sanitation.framework.base.service.BaseService;

/**
 * @author：sp
 * @date：Created in 2019-10-16
 * @description：经纬度转换服务类
 * @modified By：
 * @version: 1.0
 */
public interface MapBaseService extends BaseService<MapBase> {

    /*
     * @MethodName: selectLonLat
     * @Description: TODO 通过联合主键（精度，维度，地图类型）查询数据
     * @Param: [lon, lat, mapType] 精度，维度，地图类型{MapTypeEnum}
     * @Return: com.wuzheng.wisgo.sanitation.cloud.repository.entity.gis.MapBase
     * @Author: sunpeng
     * @Date: 2019/11/15
    **/
    public int selectLonLat(Double lon,Double lat,String mapType);


    /*
     * @MethodName: getAddressByPoint
     * @Description: TODO 根据经纬度转换地址
     * @Param: [url_getAdByPoint, amap_key, lat, log, mapType]
     * @Return: com.wuzheng.wisgo.sanitation.cloud.repository.entity.gis.MapBase
     * @Author: sunpeng
     * @Date: 2019/11/15
    **/
    public MapBase getAddressByPoint(String url_getAdByPoint, String amap_key, Double lat,Double log,String mapType) throws Exception;
}
